//
//  PlainCell.swift
//  E-CycleForShop
//
//  Created by enghou on 17/3/13.
//  Copyright © 2017年 xyxorigation. All rights reserved.
//

import UIKit

class PlainCell: UITableViewCell {
 
    var name : String = "" {
        didSet{
            nameLbl.text = name
            let size = name.StringSize(font: nameLbl.font)
            nameLbl.frame = CGRect.init(x: 28 * YXWidthScale, y: 50 * YXHeightScale - size.height / 2, width: size.width, height: size.height)
        }
    }
    private let nameLbl = UILabel.init()
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        nameLbl.textColor = UIColor.colorWithHexString(hex: "2c2c2c")
        nameLbl.font = UIFont.systemFont(ofSize: 32 * YXWidthScale)
        self.contentView.addSubview(nameLbl)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
